package com.ilink.groundservice.mapper.langflowApp;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.ilink.groundservice.entity.PO.langflowApp.StoreFlow;
import com.ilink.groundservice.entity.VO.langflowApp.QueryConditionInfo;
import com.ilink.groundservice.entity.VO.langflowApp.StoreFlowInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface StoreFlowMapper extends BaseMapper<StoreFlow> {

    IPage<StoreFlowInfo> getFlowInfosByCondition(Page<?> page, @Param("condition") QueryConditionInfo condition);

    @Select("SELECT * FROM tb_store_flow WHERE flow_id = #{sourceFlowId}")
    StoreFlowInfo getStoreFlowInfosBySourceFlowId(@Param("sourceFlowId") String sourceFlowId);

}
